package com.itheima.controller;

import com.itheima.pojo.LogQueryParam;
import com.itheima.pojo.PageResult;
import com.itheima.pojo.Result;
import com.itheima.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class OperateLogController {

    @Autowired
    private OperateLogService operateLogService;


    @GetMapping("/page")
    public Result page(LogQueryParam logQueryParam){
        PageResult pageResult = operateLogService.page(logQueryParam);
        return Result.success(pageResult);
    }

}
